package com.xsf.apache.dubbo.provider.service.impl;

import comxsf.apache.dubbo.provider.api.EchoService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Value;

@Service(version = "1.0.0")
public class EchoServiceImpl implements EchoService {
    @Value("${dubbo.protocol.port}")
    private String port;

    @Override
    public String echo(String str) {
        return String.format("Hello Dubbo %s , port %s",str,port);
    }
}
